package biz

import "encoding/json"

func Response(result *H) (string, error) {
	jsonBytes, err := json.Marshal(result)
	if err != nil {
		return "", NewError(ErrMarshalPayload, err)
	}
	return string(jsonBytes), nil
}
